package org.tea.inventory.manager.post;

import org.tea.inventory.model.dto.post.BasePostDTO;

public class PostContext {
    private PostStrategy strategy;

    public PostContext(PostStrategy strategy) {
        this.strategy = strategy;
    }

    public void executeAddStrategy(BasePostDTO data) {
        strategy.addPost(data);
    }

    public void executeEditStrategy(BasePostDTO data) {
        strategy.updatePost(data);
    }
}